//
//  FLLabel.h
//  BaseRepo
//
//  Created by leo on 2018/8/8.
//  Copyright © 2018年 LEO. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface FLLabel : UILabel


@property (nonatomic, assign) UIEdgeInsets contentEdge;//!<内边距，默认为UIEdgeInsetsZero,需要先设置后在设置text才能有效

//相关的链式属性设置和系统的相同命名，只是加了前缀fl_
@property (class, nonatomic, copy, readonly) FLLabel *(^fl_init)(void);
@property (nonatomic, copy, readonly) FLLabel *(^fl_frame)(CGRect frame);
@property (nonatomic, copy, readonly) FLLabel *(^fl_numberOfLines)(NSInteger lines);
@property (nonatomic, copy, readonly) FLLabel *(^fl_textColor)(UIColor *textColor);
@property (nonatomic, copy, readonly) FLLabel *(^fl_text)(NSString *text);
@property (nonatomic, copy, readonly) FLLabel *(^fl_font)(UIFont *font);
@property (nonatomic, copy, readonly) FLLabel *(^fl_bgColor)(UIColor *color);
@property (nonatomic, copy, readonly) FLLabel *(^fl_textAlignMent)(NSTextAlignment align);


/**
 刷新行距(此方法不适合属性字符)

 @param lineSpace 行距
 */
- (void)refreshTextWithLineSpace:(CGFloat)lineSpace;


/**
 添加属性字符

 @param text 字符
 @param font 字体
 @param color 字体颜色
 */
- (void)addAttributeString:(NSString *)text font:(UIFont *)font fontColor:(UIColor *)color;


/**
 清除属性字符
 */
- (void)clearAttributeString;


/**
 刷新属性字符
 */
- (void)refreshAttributeString;



@end
